package com.zyasdk.model;

import android.os.Parcel;
import android.os.Parcelable;

public class NewsPortal implements Parcelable {

	/**
	 * 
	 */

	public NewsPortal() {

	}

	/** id */
	private String ArticleId;

	/** 主题 */
	private String Topics;

	/** 新闻标题 */
	private String Header;

	/** 详细内容 */
	private String URL;

	/***/
	private String PublicationId;

	/** 发布 */
	private String Publication;

	/** 时间 */
	private String Published;

	/** 分类 */
	private String CategoryClass;

	/** 图片 */
	private String Image;

	/** 摘抄 */
	private String Excerpt;

	public String getArticleId() {
		return ArticleId;
	}

	public void setArticleId(String articleId) {
		ArticleId = articleId;
	}

	public String getTopics() {
		return Topics;
	}

	public void setTopics(String topics) {
		Topics = topics;
	}

	public String getHeader() {
		return Header;
	}

	public void setHeader(String header) {
		Header = header;
	}

	public String getURL() {
		return "http://api.newsportal.hk"+URL;
	}

	public void setURL(String uRL) {
		URL = uRL;
	}

	public String getPublicationId() {
		return PublicationId;
	}

	public void setPublicationId(String publicationId) {
		PublicationId = publicationId;
	}

	public String getPublication() {
		return Publication;
	}

	public void setPublication(String publication) {
		Publication = publication;
	}

	public String getPublished() {
		return Published;
	}

	public void setPublished(String published) {
		Published = published;
	}

	public String getCategoryClass() {
		return CategoryClass;
	}

	public void setCategoryClass(String categoryClass) {
		CategoryClass = categoryClass;
	}

	public String getImage() {
		return Image;
	}

	public void setImage(String image) {
		Image = image;
	}

	public String getExcerpt() {
		return Excerpt;
	}

	public void setExcerpt(String excerpt) {
		Excerpt = excerpt;
	}

	private NewsPortal(Parcel in) {
		this.ArticleId = in.readString();
		this.Topics = in.readString();
		this.Header = in.readString();
		this.URL = in.readString();
		this.PublicationId = in.readString();
		this.Publication = in.readString();
		this.Published = in.readString();
		this.CategoryClass = in.readString();
		this.Image = in.readString();
		this.Excerpt = in.readString();
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(ArticleId);
		dest.writeString(Topics);
		dest.writeString(Header);
		dest.writeString(URL);
		dest.writeString(PublicationId);
		dest.writeString(Publication);
		dest.writeString(Published);
		dest.writeString(CategoryClass);
		dest.writeString(Image);
		dest.writeString(Excerpt);
	}

	public static final Parcelable.Creator<NewsPortal> CREATOR = new Parcelable.Creator<NewsPortal>() {
		public NewsPortal createFromParcel(Parcel in) {
			return new NewsPortal(in);
		}

		public NewsPortal[] newArray(int size) {
			return new NewsPortal[size];
		}
	};

}
